package com.openbravo.ws.externalsales;

import java.io.Serializable;
import javax.xml.namespace.QName;
import org.apache.axis.description.ElementDesc;
import org.apache.axis.description.TypeDesc;
import org.apache.axis.encoding.Deserializer;
import org.apache.axis.encoding.Serializer;
import org.apache.axis.encoding.ser.BeanDeserializer;
import org.apache.axis.encoding.ser.BeanSerializer;

public class BPartner
  implements Serializable
{
  private static final long serialVersionUID = 9457582354291L;
  private String address1;
  private String address2;
  private String city;
  private String country;
  private String id;
  private String name;
  private String postal;
  private String region;
  private Object __equalsCalc = null;
  private boolean __hashCodeCalc = false;
  private static TypeDesc typeDesc = new TypeDesc(BPartner.class, true);

  public BPartner()
  {
  }

  public BPartner(String paramString1, String paramString2, String paramString3, String paramString4, String paramString5, String paramString6, String paramString7, String paramString8)
  {
    this.address1 = paramString1;
    this.address2 = paramString2;
    this.city = paramString3;
    this.country = paramString4;
    this.id = paramString5;
    this.name = paramString6;
    this.postal = paramString7;
    this.region = paramString8;
  }

  public String getAddress1()
  {
    return this.address1;
  }

  public void setAddress1(String paramString)
  {
    this.address1 = paramString;
  }

  public String getAddress2()
  {
    return this.address2;
  }

  public void setAddress2(String paramString)
  {
    this.address2 = paramString;
  }

  public String getCity()
  {
    return this.city;
  }

  public void setCity(String paramString)
  {
    this.city = paramString;
  }

  public String getCountry()
  {
    return this.country;
  }

  public void setCountry(String paramString)
  {
    this.country = paramString;
  }

  public String getId()
  {
    return this.id;
  }

  public void setId(String paramString)
  {
    this.id = paramString;
  }

  public String getName()
  {
    return this.name;
  }

  public void setName(String paramString)
  {
    this.name = paramString;
  }

  public String getPostal()
  {
    return this.postal;
  }

  public void setPostal(String paramString)
  {
    this.postal = paramString;
  }

  public String getRegion()
  {
    return this.region;
  }

  public void setRegion(String paramString)
  {
    this.region = paramString;
  }

  public synchronized boolean equals(Object paramObject)
  {
    if (!(paramObject instanceof BPartner))
      return false;
    BPartner localBPartner = (BPartner)paramObject;
    if (paramObject == null)
      return false;
    if (this == paramObject)
      return true;
    if (this.__equalsCalc != null)
      return this.__equalsCalc == paramObject;
    this.__equalsCalc = paramObject;
    int i = ((this.address1 == null) && (localBPartner.getAddress1() == null)) || ((this.address1 != null) && (this.address1.equals(localBPartner.getAddress1())) && (((this.address2 == null) && (localBPartner.getAddress2() == null)) || ((this.address2 != null) && (this.address2.equals(localBPartner.getAddress2())) && (((this.city == null) && (localBPartner.getCity() == null)) || ((this.city != null) && (this.city.equals(localBPartner.getCity())) && (((this.country == null) && (localBPartner.getCountry() == null)) || ((this.country != null) && (this.country.equals(localBPartner.getCountry())) && (((this.id == null) && (localBPartner.getId() == null)) || ((this.id != null) && (this.id.equals(localBPartner.getId())) && (((this.name == null) && (localBPartner.getName() == null)) || ((this.name != null) && (this.name.equals(localBPartner.getName())) && (((this.postal == null) && (localBPartner.getPostal() == null)) || ((this.postal != null) && (this.postal.equals(localBPartner.getPostal())) && (((this.region == null) && (localBPartner.getRegion() == null)) || ((this.region != null) && (this.region.equals(localBPartner.getRegion()))))))))))))))))) ? 1 : 0;
    this.__equalsCalc = null;
    return i==1;
  }

  public synchronized int hashCode()
  {
    if (this.__hashCodeCalc)
      return 0;
    this.__hashCodeCalc = true;
    int i = 1;
    if (getAddress1() != null)
      i += getAddress1().hashCode();
    if (getAddress2() != null)
      i += getAddress2().hashCode();
    if (getCity() != null)
      i += getCity().hashCode();
    if (getCountry() != null)
      i += getCountry().hashCode();
    if (getId() != null)
      i += getId().hashCode();
    if (getName() != null)
      i += getName().hashCode();
    if (getPostal() != null)
      i += getPostal().hashCode();
    if (getRegion() != null)
      i += getRegion().hashCode();
    this.__hashCodeCalc = false;
    return i;
  }

  public static TypeDesc getTypeDesc()
  {
    return typeDesc;
  }

  public static Serializer getSerializer(String paramString, Class paramClass, QName paramQName)
  {
    return new BeanSerializer(paramClass, paramQName, typeDesc);
  }

  public static Deserializer getDeserializer(String paramString, Class paramClass, QName paramQName)
  {
    return new BeanDeserializer(paramClass, paramQName, typeDesc);
  }

  static
  {
    typeDesc.setXmlType(new QName("/services/ExternalSales", "BPartner"));
    ElementDesc localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("address1");
    localElementDesc.setXmlName(new QName("", "address1"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("address2");
    localElementDesc.setXmlName(new QName("", "address2"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("city");
    localElementDesc.setXmlName(new QName("", "city"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("country");
    localElementDesc.setXmlName(new QName("", "country"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("id");
    localElementDesc.setXmlName(new QName("", "id"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("name");
    localElementDesc.setXmlName(new QName("", "name"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("postal");
    localElementDesc.setXmlName(new QName("", "postal"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("region");
    localElementDesc.setXmlName(new QName("", "region"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
  }
}

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.ws.externalsales.BPartner
 * JD-Core Version:    0.6.0
 */